package com.solute.web.commons.footer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.solute.web.commons.footer.service.FooterService;

@Controller
@RequestMapping(value="/footer")
public class FooterController {
	
	private @Autowired FooterService service;

	@RequestMapping(method=RequestMethod.GET)
	public String footer(ModelMap modelMap) {
		modelMap.addAttribute("total", service.getNumTotalSolutions());
		
		return "commons/footer";
	}
}
